package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdSigninSuggest;

import java.util.Date;

/**
 * <p>
 * 打卡建议
 * </p>
 *
 * @author 5146
 * @since 2022-04-08
 */
@Getter
@Setter
@ApiModel(value = "打卡建议详情")
public class SigninSuggestDetail {

    private Integer dataId;

    private Integer patientId;

    @ApiModelProperty("记录日期")
    private Date recordDate;

    @ApiModelProperty("记录时间")
    private Date recordTime;

    @ApiModelProperty("打卡项目:1 血糖；2血压；3运动；4用药；5 饮食；6 体重；7腰围；8尿酮；9 胰岛素；10睡眠")
    private Integer signinType;

    @ApiModelProperty("建议内容")
    private String suggestContent;

    private Integer updateBy;

    public SigninSuggestDetail parseFromPo(DtrdEntRdSigninSuggest po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        recordDate = po.getRecordDate();
        recordTime = po.getRecordTime();
        signinType = po.getSigninType();
        suggestContent = po.getSuggestContent();
        return this;
    }
}
